<template>
  <div class="dog">
    <div class="dog-img">
      <img :src="src" alt="" />
    </div>
    <p class="dog-desc">{{ desc }}</p>
  </div>
</template>

<script>
export default {
  name: 'Xhxggm',
  props: {
    src: {
      type: String,
      default: require('../assets/images/dva.png'),
    },
    desc: {
      type: String,
      default: '这是一只可怜的狗',
    },
  },
}
</script>

<style lang="less" scoped>
.dog {
  display: inline-block;
  margin: 5px;
  width: 200px;
  box-shadow: 0 0 23px #ccc;
  .dog-img {
    height: 204px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    img {
      width: 100%;
    }
  }
  .dog-desc {
    text-align: center;
    margin: 0;
    line-height: 30px;
    color: #7e7474;
    font-size: 14px;
  }
}
</style>
